let mixin = {
  data() {
    return {};
  },
  methods: {
    formatTime(row, column, cellValue, index) {
      let time = new Date(cellValue);
      let Y = time.getFullYear();
      let M = time.getMonth() + 1;
      let D = time.getDate();
      let h = time.getHours();
      let m = time.getMinutes();
      let s = time.getSeconds();
      h = h < 10 ? "0" + h : h;
      m = m < 10 ? "0" + m : m;
      s = s < 10 ? "0" + s : s;

      return `${Y}-${M}-${D} ${h}:${m}:${s}`;
    }
  }
};
export default mixin;